reflect.Value.typ (method)
109 uses
reflect (current package)
deepequal.go#L42: if !v1.typ().Pointers() {
makefunc.go#L104: fl |= flag(v.typ().Kind())
makefunc.go#L105: rcvr := Value{v.typ(), v.ptr, fl}
map.go#L141: tt := (*abi.MapType)(unsafe.Pointer(v.typ()))
map.go#L152: if (tt.Key == stringType || key.kind() == String) && tt.Key == key.typ() && tt.Elem.Size() <= abi.MapMaxElemBytes {
map.go#L154: e = mapaccess_faststr(v.typ(), v.pointer(), k)
map.go#L163: e = mapaccess(v.typ(), v.pointer(), k)
map.go#L205: tt := (*abi.MapType)(unsafe.Pointer(v.typ()))
map.go#L254: t := (*abi.MapType)(unsafe.Pointer(iter.m.typ()))
map.go#L279: t := (*abi.MapType)(unsafe.Pointer(iter.m.typ()))
map.go#L284: key = key.assignTo("reflect.MapIter.SetKey", v.typ(), target)
map.go#L285: typedmemmove(v.typ(), v.ptr, key.ptr)
map.go#L298: t := (*abi.MapType)(unsafe.Pointer(iter.m.typ()))
map.go#L323: t := (*abi.MapType)(unsafe.Pointer(iter.m.typ()))
map.go#L328: elem = elem.assignTo("reflect.MapIter.SetValue", v.typ(), target)
map.go#L329: typedmemmove(v.typ(), v.ptr, elem.ptr)
map.go#L340: t := (*abi.MapType)(unsafe.Pointer(iter.m.typ()))
map.go#L400: tt := (*abi.MapType)(unsafe.Pointer(v.typ()))
map.go#L402: if (tt.Key == stringType || key.kind() == String) && tt.Key == key.typ() && tt.Elem.Size() <= abi.MapMaxElemBytes {
map.go#L404: if elem.typ() == nil {
map.go#L405: mapdelete_faststr(v.typ(), v.pointer(), k)
map.go#L416: mapassign_faststr(v.typ(), v.pointer(), k, e)
map.go#L427: if elem.typ() == nil {
map.go#L428: mapdelete(v.typ(), v.pointer(), k)
map.go#L439: mapassign(v.typ(), v.pointer(), k, e)
value.go#L100: func (v Value) typ() *abi.Type {
value.go#L113: if v.typ().Size() != goarch.PtrSize || !v.typ().Pointers() {
value.go#L125: Type: v.typ(),
value.go#L133: t := v.typ()
value.go#L276: return Value{ptrTo(v.typ()), v.ptr, fl | flag(Pointer)}
value.go#L309: if v.typ().Elem().Kind() != abi.Uint8 {
value.go#L315: if v.typ().Elem().Kind() != abi.Uint8 {
value.go#L322: n := int((*arrayType)(unsafe.Pointer(v.typ())).Len)
value.go#L332: if v.typ().Elem().Kind() != abi.Int32 {
value.go#L392: t := (*funcType)(unsafe.Pointer(v.typ()))
value.go#L782: if v.typ() == nil {
value.go#L879: if v.typ().Kind() == abi.Interface {
value.go#L880: tt := (*interfaceType)(unsafe.Pointer(v.typ()))
value.go#L896: rcvrtype = v.typ()
value.go#L897: ms := v.typ().ExportedMethods()
value.go#L902: if !nameOffFor(v.typ(), m.Name).IsExported() {
value.go#L905: ifn := textOffFor(v.typ(), m.Ifn)
value.go#L907: t = (*funcType)(unsafe.Pointer(typeOffFor(v.typ(), m.Mtyp)))
value.go#L917: t := v.typ()
value.go#L1167: return v.typ().Len()
value.go#L1171: if v.typ().Elem().Kind() == abi.Array {
value.go#L1172: return v.typ().Elem().Len()
value.go#L1185: tt := (*chanType)(unsafe.Pointer(v.typ()))
value.go#L1232: if !v.typ().IsDirectIface() {
value.go#L1253: tt := (*ptrType)(unsafe.Pointer(v.typ()))
value.go#L1268: tt := (*structType)(unsafe.Pointer(v.typ()))
value.go#L1316: if v.Kind() == Pointer && v.typ().Elem().Kind() == abi.Struct {
value.go#L1339: if v.Kind() == Ptr && v.typ().Elem().Kind() == abi.Struct {
value.go#L1341: return Value{}, errors.New("reflect: indirection through nil pointer to embedded struct field " + nameFor(v.typ().Elem()))
value.go#L1356: if f, ok := toRType(v.typ()).FieldByName(name); ok {
value.go#L1367: if f, ok := toRType(v.typ()).FieldByNameFunc(match); ok {
value.go#L1403: tt := (*arrayType)(unsafe.Pointer(v.typ()))
value.go#L1426: tt := (*sliceType)(unsafe.Pointer(v.typ()))
value.go#L1566: iface := *(*any)(unsafe.Pointer(&abi.EmptyInterface{Type: v.typ(), Data: nil}))
value.go#L1580: if typ != v.typ() {
value.go#L1682: typ := (*abi.ArrayType)(unsafe.Pointer(v.typ()))
value.go#L1713: typ := (*abi.StructType)(unsafe.Pointer(v.typ()))
value.go#L1834: typedmemclr(v.typ(), v.ptr)
value.go#L1861: tt := (*arrayType)(unsafe.Pointer(v.typ()))
value.go#L1871: if v.typ().Elem().Kind() == abi.Array {
value.go#L1872: return v.typ().Elem().Len()
value.go#L1900: if v.typ() == nil {
value.go#L1903: if v.flag&flagMethod != 0 || uint(i) >= uint(toRType(v.typ()).NumMethod()) {
value.go#L1906: if v.typ().Kind() == abi.Interface && v.IsNil() {
value.go#L1912: return Value{v.typ(), v.ptr, fl}
value.go#L1921: if v.typ() == nil {
value.go#L1927: return toRType(v.typ()).NumMethod()
value.go#L1940: if v.typ() == nil {
value.go#L1946: m, ok := toRType(v.typ()).MethodByName(name)
value.go#L1957: tt := (*structType)(unsafe.Pointer(v.typ()))
value.go#L2000: bitSize := v.typ().Size() * 8
value.go#L2048: if !v.typ().Pointers() {
value.go#L2099: tt := (*chanType)(unsafe.Pointer(v.typ()))
value.go#L2132: tt := (*chanType)(unsafe.Pointer(v.typ()))
value.go#L2158: x = x.assignTo("reflect.Set", v.typ(), target)
value.go#L2161: typedmemclr(v.typ(), v.ptr)
value.go#L2163: typedmemmove(v.typ(), v.ptr, x.ptr)
value.go#L2184: if toRType(v.typ()).Elem().Kind() != Uint8 { // TODO add Elem method, fix mustBe(Slice) to return slice.
value.go#L2196: if v.typ().Elem().Kind() != abi.Int32 {
value.go#L2338: tt := (*arrayType)(unsafe.Pointer(v.typ()))
value.go#L2344: typ = (*sliceType)(unsafe.Pointer(v.typ()))
value.go#L2358: return Value{v.typ(), unsafe.Pointer(&t), v.flag}
value.go#L2400: tt := (*arrayType)(unsafe.Pointer(v.typ()))
value.go#L2406: typ = (*sliceType)(unsafe.Pointer(v.typ()))
value.go#L2494: return v.typ()
value.go#L2504: typ := v.typ()
value.go#L2506: return v.typ()
value.go#L2512: if v.typ().Kind() == abi.Interface {
value.go#L2572: if v.typ() == nil {
value.go#L2601: if !v.typ().Pointers() {
value.go#L2745: t := v.typ().Elem()
value.go#L2778: st := (*sliceType)(unsafe.Pointer(v.typ()))
value.go#L2781: mapclear(v.typ(), v.pointer())
value.go#L2833: stringCopy = sk == String && dst.typ().Elem().Kind() == abi.Uint8
value.go#L2840: de := dst.typ().Elem()
value.go#L2842: se := src.typ().Elem()
value.go#L2977: tt := (*chanType)(unsafe.Pointer(ch.typ()))
value.go#L3008: tt := (*chanType)(unsafe.Pointer(ch.typ()))
value.go#L3188: case directlyAssignable(dst, v.typ()):
value.go#L3195: case implements(dst, v.typ()):
value.go#L3215: panic(context + ": value of type " + stringFor(v.typ()) + " is not assignable to type " + stringFor(dst))
value.go#L3225: op := convertOp(t.common(), v.typ())
value.go#L3227: panic("reflect.Value.Convert: value of type " + stringFor(v.typ()) + " cannot be converted to type " + t.String())
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |